package com.barnaby.sudoku;

public class Cell {
	public Cell(){
		setValue(0);
	}
	
	public int getValue(){
		return value;
	}int value;
	
	public final int MaxValue = 9;
	public final int MinValue = 0;
	
	private boolean isValidCellValue(int value){
		return (value >= MinValue && value <= MaxValue && value % 1 == 0);
	}
	
	public boolean setValue(int value){
		if(!isValidCellValue(value))
			return false;
		this.value = value;
		return true;
	}
}
